package com.bdqn.reflect.pojo;

import java.io.Serializable;
import java.util.Arrays;

/**
 * 图书
 *
 * @author LILIBO
 * @since 2024/7/2
 */
public class Book implements Serializable {

    private static final long serialVersionUID = 42L;

    private int id;
    private String name;
    private String author;
    private String[] section; // 技能集合

    @Override
    public String toString() {
        return "Book{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", author='" + author + '\'' +
                ", section=" + Arrays.toString(section) +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String[] getSection() {
        return section;
    }

    public void setSection(String[] section) {
        this.section = section;
    }

}
